from django.urls import re_path

from app01 import consumers

websocket_urlpatterns = [
    # 创建asgi的urls.py多个，和原来的urls一样, consumers:就是原来的views视图，写websocket的逻辑
    re_path(r'room/(?P<group>\w+)/$', consumers.ChatConsumer.as_asgi()),
    # re_path(r'ws/(?P<group>\w+)/$', consumers.ChatConsumer.as_asgi())
]